const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        dealerCode: 'string',
        dealerName: 'string',
        sapDeliveryCode: 'string',
        sapTransferOrderCode: 'string',
        partSaleOrderCode: 'string',
        status: 1,
        partCode: 'string',
        partName: 'string',
        partDescription: 'string',
        deliveryQuantity: 1,
        price: 1,
        totalAmount: 1,
        oldPartCode: 'string',
        oldPartName: 'string'
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});
router.get('/export', (req, res) => {
    res.json({
        message: '导出'
    });
});
module.exports = router;
